<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/view/conf/farmtag.tld" prefix="PF"%>
<%@ taglib uri="/view/conf/wda.tld" prefix="WDA"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<div class="container">
	<div class="row">
		<div class="col-md-4"></div>
	</div>
	<div class="row" style="margin-top: 70px;">
		<div class="col-md-3  visible-lg visible-md"></div>
		<div class="col-md-6">
			<div class="panel panel-default">
				<div class="panel-body">
					<div class="row doc_column_box">
						<div class="col-sm-12">
							<div style="text-align: center;">
								<hr class="hr_split" />
								<span class="column_title">${file.name}</span>
								<hr class="hr_split" />
								<img style="max-height: 128px; max-width: 128px;" alt="${file}"
									src="text/img/fileicon/${fn:toUpperCase(fn:replace(file.exname,'.',''))}.png" />
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-12">
							<table class="table table-bordered table-hover"
								style="font-size: 12px;">
								<tr class="downloadButton_wcp">
									<td class="active" style="width: 100px;"><b>操作</b></td>
									<td><WDA:IsNotSupport fileid="${file.id}">
											<a href="${file.url}">&nbsp;下载</a>
										</WDA:IsNotSupport> <WDA:IsSupport fileid="${file.id}">
											<PF:IfParameterEquals key="config.sys.webfile.downloadable"
												val="true">
												<a href="${file.url}">&nbsp;下载</a>
											</PF:IfParameterEquals>
											<a
												target="<PF:ParameterValue key="config.sys.link.newwindow.target"/>"
												href="<WDA:DocWebViewUrl fileid='${file.id}' docid='none'></WDA:DocWebViewUrl>">&nbsp;预览<img
												alt="" src="text/img/wda.png"></a>
										</WDA:IsSupport></td>
								</tr>
								<tr>
									<td class="active" style="width: 100px;"><b>文件大小</b></td>
									<td>${file.len/1000}kb</td>
								</tr>
								<tr>
									<td class="active" style="width: 100px;"><b>创建时间</b></td>
									<td><PF:FormatTime date="${file.ctime}"
											yyyyMMddHHmmss="yyyy-MM-dd HH:mm:ss" /></td>
								</tr>
								<tr>
									<td class="active" style="width: 100px;"><b>创建人</b></td>
									<td>${file.cusername}</td>
								</tr>
								<tr>
									<td class="active" style="width: 100px;"><b>扩展名</b></td>
									<td>${file.exname}</td>
								</tr>
								<tr>
									<td class="active" style="width: 100px; word-wrap: break-word;"><b>ID</b></td>
									<td style="font-size: 8px;">${file.id}</td>
								</tr>
								<c:if test="${docid!=null}">
									<tr>
										<td colspan="2" class="text-center" style="font-size: 8px;"><a
											href="webdoc/view/Pub${docid}.html" type="button"
											class="btn btn-info btn-sm">返回知识</a></td>
									</tr>
								</c:if>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="col-md-3  visible-lg visible-md"></div>
	</div>
</div>